angular.module('myApp')
.controller('CascaderCtrl', ['$scope', function($scope) {
  $scope.options = [
    {
      value: 'gd',
      label: '广东',
      children: [
        {
          value: 'gz',
          label: '广州',
          children: [
            { value: 'th', label: '天河' },
            { value: 'by', label: '白云' }
          ]
        }
      ]
    },
    {
      value: 'zj',
      label: '浙江',
      children: [
        { value: 'hz', label: '杭州' }
      ]
    }
  ];
  $scope.onChange = function(params) {
    console.log(params);
  }
}])
.directive('elCascader', elCascader);